package com.ssyt.yt1.day9.abstractdemo.callback;

public class Benz extends Car {

	@Override
	public void print(int number) {
		System.out.println("Benz:" + number);
	}

	public void invoke() {
		new Factory(this).product();
	}

	public static void main(String[] args) {
		new Benz().invoke();
	}
}
